//
//  MSFilterNavigationTitle.m
//  MSJD
//
//  Created by 箭军刘 on 2018/11/4.
//  Copyright © 2018 xiangbo. All rights reserved.
//

#import "MSFilterNavigationTitle.h"


@interface MSFilterNavigationTitle()

@property (weak, nonatomic) IBOutlet UIView *searchSuperView;

@property (weak, nonatomic) IBOutlet UITextField *naviTitleLabel;

@end

@implementation MSFilterNavigationTitle

+ (instancetype)loadSearchNavigationTitle {
    MSFilterNavigationTitle *filterNavi = [[[NSBundle mainBundle] loadNibNamed:@"MSFilterNavigationTitle" owner:nil options:nil] firstObject];
    return filterNavi;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.searchSuperView.layer.cornerRadius = 16.0;
}

#pragma mark - Public Method

- (void)changeNavititle:(NSString *)title {
    self.naviTitleLabel.text = title;
    self.naviTitleLabel.textColor = [UIColor colorWithHexString:@"#444444"];
}

#pragma mark - Event Response

- (IBAction)backButtonClick:(id)sender {
    if (self.BackButtonClickBlock) {
        self.BackButtonClickBlock();
    }
}

// 搜索按钮点击
- (IBAction)searchButtonClick:(id)sender {
    if (self.SearchButtonClickBlock) {
        self.SearchButtonClickBlock();
    }
}

- (IBAction)mapButtonClick:(id)sender {
    if (self.MapButtonClickBlock) {
        self.MapButtonClickBlock();
    }
}

#pragma mark -  Memory Method
- (void)dealloc {
    NSLog(@"%s", __func__);
}

@end
